package com.cc.models;

import java.util.List;

public class Result {
	
	private int status;							// 状态码
	
	private String msg;							// 消息
	
	private int total;							// 总数
	
	private List<? extends BaseModel> rows;				// 分页数据
	
	private Object data;						// 数据

	public enum Status{
		OK(200);
		public int status;
		Status(int status){
			this.status = status;
		}
	}
	public enum Message{
		OK("请求成功");
		public String message;
		private Message(String message) {
			this.message = message;
		}
	}
	
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public List<? extends BaseModel> getRows() {
		return rows;
	}
	public void setRows(List<? extends BaseModel> rows) {
		this.rows = rows;
	}
}
